﻿<%@ Page Language="C#" MasterPageFile="~/ClientSite.Master" AutoEventWireup="true"
    CodeBehind="DonDatHang.aspx.cs" Inherits="SES.CMS.DonDatHang" Title="Đơn hàng đã đặt" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .dl-default
        {
        }
        .dt-default
        {
            float: left;
            margin: 0 auto;
            text-align: right;
            margin-right: 4px;
            width: auto;
            font-weight: bold;
            background-color: Transparent;
            border: none;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="main">
        <div class="page_margins">
            <div class="page">
                <div class="subcolumns">
                    <div class="c20l">
                        <ul class="tree sidebarMenu corners">
                        </ul>
                    </div>
                    <div class="c80r">
                        <div class="kontopage">
                            <div class="textbox">
                                <h1 class="borderbottom pageHead">
                                    <font><font>My Order History</font></font></h1>
                              
                                <br>
                                <hr>
                                <br>
                                <ul class="orderList">
                                    <asp:Repeater runat="server" ID="rptDonHang">
                                        <ItemTemplate>
                                            <li>
                                                <table class="orderitems">
                                                    <tbody>
                                                        <tr>
                                                            <td>
                                                                <dl class="dl-default">
                                                                    <dt class="dt-default" title="Order from:"><strong id="accOrderDate_18373"><font><font>
                                                                        <asp:Label runat="server" ID="lblDateTime" Text='<%# Convert.ToDateTime(Eval("NgayDatHang")).ToShortDateString()%>'></asp:Label></span>
                                                                    </dt>
                                                                    <dd>
                                                                        <strong><font><font>Status: </font></font></strong><span id="accOrderStatus_18373"><span>
                                                                            <font><font>
                                                                                <asp:Label runat="server" ID="lblStatus" Text='<%#(bool)(Eval("XuLy"))==true?"Đã xử lý":"Chưa xử lý" %>'></asp:Label></font></font></span>
                                                                        </span>
                                                                    </dd>
                                                                    <dd>
                                                                        <strong><font><font>No.: </font></font></strong><span id="accOrderNo_18373"><font><font>
                                                                            <asp:Label runat="server" ID="lblDonHangID" Text='<%#Eval("DonHangID").ToString() %>'></asp:Label></font></font></span>
                                                                    </dd>
                                                                    <dd>
                                                                        <strong><font><font>Ships to: </font></font></strong><span id="accOrderName_18373"><font>
                                                                            <font>
                                                                                <asp:Label runat="server" ID="Label1" Text='<%#Eval("HoTen").ToString() %>'></asp:Label>
                                                                            </font></font></span>
                                                                    </dd>
                                                                </dl>
                                                            </td>
                                                            <td>
                                                                <h3>
                                                                    <font><font class="">Cart:</font></font></h3>
                                                                <table class="orderhistory">
                                                                    <tbody>
                                                                        
                                                                            <asp:Repeater ID="rptGioHang" runat="server" DataSource='<%# GetChildData(Eval("SessionID").ToString()) %>'>
                                                                                <ItemTemplate>
                                                                                <tr id="accOrderAmount_18373_1">
                                                                                    <td>
                                                                                         <a href='SanPhamChiTiet/<%#Eval("SanPhamID")%>/<%#(bool)(Session["lang"].ToString()=="VN")?FriendlyUrl(Eval("TenSanPham").ToString()): (Eval("ProductName")+".aspx")%>' title="Demo">
                                                                                          <%#(bool)(Session["lang"].ToString()=="VN")?Eval("TenSanPham"):Eval("ProductName")%>
                                                                                            <span class="amount"><font><font> - <asp:Label runat="server" ID="Label1" Text='<%#Eval("SoLuong").ToString() %>'></asp:Label></font></font></span>
                                                                                         </a>
                                                                                    </td>
                                                                                    </tr>
                                                                                </ItemTemplate>
                                                                            </asp:Repeater>
                                                                        
                                                                    </tbody>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
                                <div class="c33l">
                                    <div class="subc">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
